package org.fluidindia.financial.ria.service
{
	import flash.events.IEventDispatcher;
	
	import mx.controls.Alert;
	import mx.rpc.AsyncToken;
	import mx.rpc.events.FaultEvent;
	import mx.rpc.events.ResultEvent;
	import mx.rpc.remoting.RemoteObject;
	
	import org.fluidindia.ria.library.remoting.DestinationLocator;
	import org.fluidindia.ria.library.remoting.FluidBaseService;
	import org.fluidindia.security.vo.LoginVO;
	import org.swizframework.utils.services.MockDelegateHelper;
	import org.swizframework.utils.services.ServiceHelper;

	public class SecurityService extends FluidBaseService
	{
		public function getDest():RemoteObject
		{
			return super.getDestination("securityManager");
		}
		
		
		[EventHandler( event="LoginEvent.LOGIN_EVENT", properties="username, password, resultHandler, faultHandler" )]
		public function login( username:String, password:String, resultHandler:Function, faultHandler:Function ) : void
		{
			sh.executeServiceCall( getDest().login(username, password), resultHandler, faultHandler);
		}
	}
}

